<?php
class V1_chiefly extends CI_Controller{
	 function V1_chiefly(){
	  	parent::__construct();
	 }
	 function index(){
	 	$data=array();
	 	$host=$this->load->get_var('host');
	 	if($host=='manage'){
	 		if(LOGIN===true){
	 			header('Location: /manage.html');
	 		}else{
	 			header('Location: /manage/login.html');
	 		}
	 	}else{
	 		$htdocs=$this->load->get_var('htdocs');
	 		$this->load->view('chiefly.index.'.$htdocs['tag'].'.php',$data);
	 	}
	 }
}
?>